import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import Resource from 'vue-resource'


Vue.use(ElementUI)
Vue.use(Resource)

Vue.config.productionTip = false

router.beforeEach((to, from, next) => {
  next()
  document.title = `${to.meta.title}`;
})

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
